import type { VNode,ComponentInternalInstance } from "vue";
export interface MessageProps {
  message?: string | VNode;
  type?: "success" | "danger" | "info" | "warning";
  showClose?: boolean;
  duration?: number;   //如果设置为0，则不会自动关闭
  onDestory:()=>void;
  id:string;
  zIndex:number;
  offset?:number;
  transitionName?:string
}
export interface MessageContext{
  id:string;
  vnode:VNode;
  vm:ComponentInternalInstance;
  props:MessageProps;
  destory:()=>void;
}
export type createMessageProps=Omit<MessageProps,'onDestory'|'id'|'zIndex'>